<?
if(!defined('L_ADMOD')) {echo "<meta http-equiv='refresh' content='0; url=/?nma=error&act=403'>";exit;}
include("./inc/bloced.php");

$new_nom='';
if(!isset($item))
{
	$query_nomer=mysql_query("SELECT * FROM ".$wcpref.$op."_razd ORDER BY mod_id DESC LIMIT 1");
	if (mysql_num_rows($query_nomer)==0)
		$new_nom=1;
	else
	{
		$result_nomer=mysql_fetch_array($query_nomer);
		extract($result_nomer);
		$new_nom=$mod_nomer+1;
	}
}
print '<br><br><form name="form" method="post" action="admin.php?op='.$op.'&flag=goto&action=newr">
	<table border="0" cellpadding="1" cellspacing="1" align="center">
		<tr class="even">
			<td>
				'._NAMERAZD_.'
			</td>
			<td>
				<input type="text" name="new_name" size="50">
			</td>
		</tr>
		<tr class="odd">
			<td>
				'._NOMER_.'
			</td>
			<td>
				<input type="text" name="new_nom" size="50" value="'.$new_nom.'">
			</td>
		</tr>
		<tr>
			<td colspan="2" class="head" align="center"><input type="submit" value="'._ADD_.'"></td>
		</tr>
	</table>
</form>';
?>